package com.ruoyi.InboundManagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退料入库管理对象 material_return_inbound
 * 
 * @author admin
 * @date 2024-07-02
 */
public class MaterialReturnInbound extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退料入库记录ID */
    private Long returnId;

    /** 退料单号，唯一标识 */
    @Excel(name = "退料单号，唯一标识")
    private String returnNumber;

    /** 退料物料ID，关联物料表 */
    @Excel(name = "退料物料ID，关联物料表")
    private Long materialId;

    /** 退料物料名称 */
    @Excel(name = "退料物料名称")
    private String materialName;

    /** 退料数量 */
    @Excel(name = "退料数量")
    private Long quantity;

    /** 单位，如件、公斤等 */
    @Excel(name = "单位，如件、公斤等")
    private String unit;

    /** 退料原因 */
    @Excel(name = "退料原因")
    private String returnReason;

    /** 退料日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 供应商ID，关联供应商表 */
    @Excel(name = "供应商ID，关联供应商表")
    private Long supplierId;

    /** 仓库ID，关联仓库表 */
    @Excel(name = "仓库ID，关联仓库表")
    private Long warehouseId;

    /** 操作员ID，关联用户表 */
    @Excel(name = "操作员ID，关联用户表")
    private Long operatorId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setReturnId(Long returnId) 
    {
        this.returnId = returnId;
    }

    public Long getReturnId() 
    {
        return returnId;
    }
    public void setReturnNumber(String returnNumber) 
    {
        this.returnNumber = returnNumber;
    }

    public String getReturnNumber() 
    {
        return returnNumber;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setReturnReason(String returnReason) 
    {
        this.returnReason = returnReason;
    }

    public String getReturnReason() 
    {
        return returnReason;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("returnId", getReturnId())
            .append("returnNumber", getReturnNumber())
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("returnReason", getReturnReason())
            .append("returnDate", getReturnDate())
            .append("supplierId", getSupplierId())
            .append("warehouseId", getWarehouseId())
            .append("operatorId", getOperatorId())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
